package com.cafe.case5;

public class RunnableTask implements Runnable {

    private String taskName;

    public RunnableTask(String taskName) {
        this.taskName = taskName;
    }

    @Override
    public void run() {
        System.out.println(this.taskName + " is running. USER_NAME is " + AppContext.USER_NAME.get());
        AppContext.USER_NAME.set("Change to: " + this.taskName);
    }
}
